package com.util;

public final class PathLocator {

	private PathLocator() {
	}

	public static String getProjectRootPath() {

		String absoultePath = PathLocator.class.getResource(PathLocator.class.getSimpleName() + ".class").getPath();
		String rootPath = absoultePath.split("WEB-INF/classes")[0];
		if (!rootPath.endsWith("/")) {
			rootPath += "/";
		}
		return rootPath;
	}

	public static String getClassesPath() {
		return getProjectRootPath() + "WEB-INF/classes/";
	}

}
